package com.wb.mianxiangduixiang.租车系统1;

/**
 * @author 黄衡熙
 * @version 1.0
 * @date 2025年07月21日16:12
 */
public class Bus extends MotorVehicle {
    private int seatCount;

    public int getSeatCount() {
        return seatCount;
    }

    public void setSeatCount(int seatCount) {
        this.seatCount = seatCount;
    }

    @Override
    public double rent(int day) {
        // 此处通过座位数判断租金
        if(seatCount<=30){
            return 1000*day;
        }else {
            return 2000*day;
        }
    }
}
